<template>
  <router-view></router-view>
  <a-button type="primary" @click="detail">进入日志详情</a-button>
  <a-button type="primary" @click="flatRoute">扁平化路由</a-button>
</template>
<script lang="ts" setup>
import { AsyncRoute } from '@/router/main';
import { flatRouteInfo } from '@/utils/route.utils';
const router = useRouter();
const detail = () => {
  router.push({ path: '/system/sys_logs/detail' });
};
const flatRoute = () => {
  flatRouteInfo(AsyncRoute, []);
};
</script>
<style lang="scss" scoped></style>
